#include "test.h"
#include <stdio.h>

void test()
{
	FILE *f = popen("file test|grep CRLF", "r");
	char buffer[80] = {0};
	if ( f == NULL ) {
		printf("popen failed\n");
		return;
	}
	fgets(buffer, 80, f);
	printf("%d\n", buffer[0]);
	pclose(f);
}
